<?php

namespace Index\Controller;

class NoticeController extends CommonController {


    //首页
    public function index(){
        $notice_id = I('request.notice_id');
        if($notice_id > 0){

            $this->assign('data',D('Common/Notice')->where("`notice_id`='{$notice_id}'")->find());
            $this->display('Index/notice');exit;
        }
        $this->error('页面不存在');
    }

    public function noticelist(){
        $this->assign('data',D('Common/Notice')->where("`disabled`=1")->select());
        $this->display('Index/noticelist');exit;
    }


}